package com.site.user.service;




import java.util.List;

import org.springframework.stereotype.Service;

import com.site.data.JPABaseDAOImpl;
import com.site.user.pojo.TbDictionary;

/**
 * @author      zhanjun
 * @date        2010-12-8
 * @version     1.0
 * @description 用户表服务层
 * 
 */
@Service("tbDictionaryService")
public class TbDictionaryService extends JPABaseDAOImpl<TbDictionary> implements ITbDictionaryService {

	/**
	 * @description 获取字典 
	 * @param website
	 * @param model
	 * @param filed
	 * @return 返回一pojo List
	 */
	public List getDict(String website, String model, String filed) {

		
		String jpql = "select c from TbDictionary c where systemKey='" + website + "' and  tbaleKey='" + model
				+ "' and fieldKey='" + filed + "' order by fieldKey";

		List<TbDictionary> cglist = queryForList(jpql, TbDictionary.class);
		
		return cglist;
	}
}
